	//点击增加选项卡公共方法
	function menuPublic(name,url,id){
  	    var modelName = "iframe"+id;
       var iframes = $("iframe[name^='iframe']", window.parent.document);	
    
        var olIframes = null;							
        for(var i = 0; i < iframes.length; i++) {
           if(modelName == iframes[i].name){
            	olIframes = iframes[i];		
            }
        }			
        if(olIframes == null){
   	  	 //将所有选中的样式清空
   	     $('.page-tabs-content', window.parent.document).html($('.page-tabs-content', window.parent.document).html().replace(/active/g,""));
   	  	 //为首部选项卡赋值
   	  	 $('.page-tabs-content', window.parent.document).append('<a id="tab'+id+'" href="javascript:;" class="active J_menuTab" data-id="'+url+'">'+name+' <i class="fa fa-times-circle"></i></a>');
   	  	 //将所有选项卡选项卡选中状态置为none，模糊匹配
   	  	 $("iframe[name^='iframe']", window.parent.document).css('display','none');		
   	  	 //动态增加选项卡iframe，并将选中状态设置为inline
   	  	 $('#content-main', window.parent.document).append('<iframe class="J_iframe" name="iframe'+id+'" src="'+url+'" style="display: inline;" data-id="'+url+'" seamless="" width="100%" height="100%" frameborder="0"></iframe>'); 
        }else{
      	  	//将所有选中的样式清空
      	    $('.page-tabs-content', window.parent.document).html($('.page-tabs-content', window.parent.document).html().replace(/active/g,""));
        	$("#tab"+id, window.parent.document).addClass("active");
      	  	//将所有选项卡选项卡选中状态置为none，模糊匹配
      	  	$("iframe[name^='iframe']", window.parent.document).css('display','none');		
      	    $("iframe[name='iframe"+id+"']", window.parent.document).css('display',' inline');
        }

	 }